<template>
  <div class="footer">
    <div class="container">
      <div class="link">
        <span @click="friendLinkClick">
          <router-link to="/friendshipLink" class="link-item">友情链接</router-link>
        </span>
        <span>
          <router-link to="/aboutMe" class="link-item">关于我</router-link>
        </span>
        <div class="CDN">
          &nbsp;&nbsp;&nbsp;CDN&nbsp;&nbsp;支持
        </div>
        <div>
          <a class="link-item git" href="https://git.oschina.net/xiaokangcheng/blog_vue">https://git.oschina.net/xiaokangcheng/blog_vue</a>
        </div>
      </div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    methods: {
      friendLinkClick () {
        this.$emit('show-friend', {isClick: true})
      }
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
  .footer
    background-color #9caebf
    text-align center
    color #fff
    height 150px
  .link
    margin 20px
  .link-item
    text-decoration none
    color #fff
    padding 0px 25px
  .CDN
    margin 25px
  .link-item:hover
    text-decoration  none
    color #e5e5e5
  .link-item:link
    text-decoration none
    color #e5e5e5
  .link-item:visited
    color #fff
  .container
    height 150px
    margin-bottom  0px
</style>
